﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FoneBuddy.LinqModel.Data;

namespace FoneBuddy.LinqModel
{
    public partial class Brand
    {
        #region Variable Declaration
        private IDataRepository _dataObject;
        #endregion

        public Brand(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public List<Brand> GetAllBrands()
        {
            return _dataObject.GetAllBrand();
        }
        public void Create()
        {
            _dataObject.CreateBrand(this);
        }
        public void Delete()
        {
            _dataObject.DeleteBrand(this);
        }
        public void Update()
        {
            _dataObject.UpdateBrand(this);
        }
        public void GetBrandById()
        {
            _dataObject.GetBrandById(this);
        }
        public void GetBrandByName()
        {
            _dataObject.GetBrandByName(this);
        }
    }
}
